package com.ds.dsm.view.config.nav.items;

import com.ds.dsm.aggregation.module.ModuleWinBean;
import com.ds.esd.custom.annotation.CustomAnnotation;
import com.ds.esd.custom.form.annotation.FormAnnotation;
import com.ds.esd.tool.ui.enums.Dock;

@FormAnnotation(col = 2)
public class ModuleItemsLayoutView {

    @CustomAnnotation(hidden = true, pid = true)
    String viewInstId;

    @CustomAnnotation(hidden = true, readonly = true, uid = true)
    String fieldname;

    @CustomAnnotation(hidden = true, pid = true)
    String sourceClassName;

    @CustomAnnotation(caption = "对齐方式")
    Dock dock;

    @CustomAnnotation(caption = "显示图标")
    String imageClass;

    @CustomAnnotation(caption = "高度")
    String height;

    @CustomAnnotation(caption = "宽度")
    String width;


    public ModuleItemsLayoutView() {

    }

    public ModuleItemsLayoutView(ModuleWinBean config) {
        this.sourceClassName = config.getSourceClassName();

        this.dock = config.getDock();
        this.height = config.getHeight();
        this.width = config.getWidth();
        this.imageClass = config.getImageClass();
        this.fieldname = config.getMethodName();
        this.viewInstId = config.getViewInstId();
    }

    public String getViewInstId() {
        return viewInstId;
    }

    public void setViewInstId(String viewInstId) {
        this.viewInstId = viewInstId;
    }

    public String getSourceClassName() {
        return sourceClassName;
    }

    public void setSourceClassName(String sourceClassName) {
        this.sourceClassName = sourceClassName;
    }


    public String getImageClass() {
        return imageClass;
    }

    public void setImageClass(String imageClass) {
        this.imageClass = imageClass;
    }


    public String getFieldname() {
        return fieldname;
    }

    public void setFieldname(String fieldname) {
        this.fieldname = fieldname;
    }

    public Dock getDock() {
        return dock;
    }

    public void setDock(Dock dock) {
        this.dock = dock;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }


    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }



}
